<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>金银商城--有色金属高峰论坛</title>
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/base2013.css">
<link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/pintuer.css">
<link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/puplic.css">
<script type="text/javascript">
            var _winLocation=window.location.href;//获得当前页面的路径，根据路径规则进行逐页替换
            var _isWebKit = '__proto__' in {};//是否是webkit内核
            if(_isWebKit){//如果是webkit内核，则分模块使用zepto
                var _needReplace = false;
                //如果是自动加载分页的页面则使用zepto
                if(_winLocation.match(/^http:\/\/.*?\/mobile\/index.php\?act=goods_recom$/i)){
                    _needReplace=true;
                }
                if(_needReplace){
                    document.write('<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/zepto.min.js"><\/script>');
                    document.write('<script type="text/javascript">window.jQuery=window.Zepto;<\/script>');
                }else{
                    document.write('<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/jquery-1.8.0.min.js"><\/script>');
                }
            }else{//如果是非webkit内核直接使用jquery
                document.write('<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/jquery-1.8.0.min.js"><\/script>');
            }
        </script>
<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/common.js"></script>
<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/spin.min.js"></script>
<style>
</style>
<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/pintuer.js"></script>
<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/respond.js"></script>
<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/js.js"></script>
<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/newView.js"></script>
<style>
.mobileTxt i {
    background: url('<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/phone4.png') no-repeat !important;
	background-size: 18px !important;
    width: 18px;
    height: 25px;
	border:0;
}
.userTxt i {
    background: url('<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/user.png') no-repeat !important;
    background-size: 18px !important;
    width: 18px;
    height: 20px;
    margin-top: 5px;
    border:0;
}
body,html{ background:url("<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/bg.jpg") no-repeat center; background-size: cover}
.bg-02d4f9 {
    background: #02d4f9;
}
</style>
</head>
<body>

<!--回到顶部E-->
<article>
  <div class="height44"></div>
  <!--在店铺页面及我的美财页面不需要这个div-->
  <!--页面内容S-->
  <script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/jquery.validation.min.js"></script>

  <!--登陆S-->
  <div style="text-align:center"> <img style="width:200px" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/logo.png"/></div>
  <div class="login">
    <form method="post" action="index.php?act=register" id="login_form" class="form-tips">
      <?php Security::getToken();?>
        <input type="hidden" name="form_submit" value="ok" />
        <input name="nchash" type="hidden" value="<?php echo getNchash();?>" />
      <?php if(empty($output['mobile'])){?>
      <div class="mobileTxt bg-white padding margin-bottom radius-big form-group">
          <div class="clearfix"> <i class="float-left padding-right border-right border-ef7f7e userName-icon"></i> <span class="float-left padding-left field">
          <input type="text" id="mobile" name="mobile" placeholder="手机号" class="border-none">
          </span> </div>
      </div>
          <div class="userTxt bg-white padding margin-bottom radius-big form-group">
          <div class="clearfix"> <i class="float-left padding-right border-right border-ef7f7e userName-icon"></i> <span class="float-left padding-left field">
          <input type="text" id="truename" name="truename" placeholder="客户姓名" class="border-none">
          </span> </div>
          </div>
     <?php }else{?>
          <script type="text/javascript" src="<?php echo LOGIN_RESOURCE_SITE_URL;?>/js/connect_sms.js" charset="utf-8"></script>
          <input type="hidden" name="mobile" id="phone" value="<?php echo $output['mobile'];?>" />
          <input type="hidden" name="truename" id="truename" value="<?php echo $output['truename'];?>" />
          <div class="mobileTxt bg-white padding margin-bottom radius-big form-group">
              <div class="clearfix"> <i class="float-left padding-right border-right border-ef7f7e userName-icon"></i> <span class="float-left padding-left field">
          <input type="text" id="captcha" name="captcha" placeholder="请输入验证码" class="border-none">
          <input type="hidden" id="image_captcha" value="true" />
          </span> </div>
              <script type="text/javascript">
                  function get_sms_captcha(type){
                      if($("#phone").val().length == 11 && $("#image_captcha").val().length == 4){
                          var ajaxurl = 'index.php?act=seccode&op=get_captcha&nchash=1&type='+type;
                          ajaxurl += '&captcha='+$('#image_captcha').val()+'&phone='+$('#phone').val();
                          $.ajax({
                              type: "GET",
                              url: ajaxurl,
                              async: false,
                              success: function(rs){
                                  if(rs == 'true') {
                                     // $("#sms_text").html('短信动态码已发出');
                                  } else {
                                      alert(rs);
                                     setTimeout(function(){ window.location.href='index.php?act=register';},5000);
                                  }
                              }
                          });
                      }
                  }

                  $(function(){setTimeout(function(){get_sms_captcha('1')},1000);});
              </script>
          </div>
      <?php }?>
      <div class="userTxt margin-bottom ">
          <?php if(empty($output['mobile'])){?>
          <input type="submit" class="text-white bg-02d4f9 border-none radius-big padding text-center layout text-big" value="注册">
          <?php }else{?>
          <input type="submit" class="text-white bg-02d4f9 border-none radius-big padding text-center layout text-big" value="确定">
          <?php }?>
      </div>
    </form>
  </div>
  <!--登陆E-->
  <script type="text/javascript">
$(document).ready(function(){
	$("#login_form").validate({
        //放置错误提示的方法
        errorPlacement: function(error, element){
            var error_td = element.parent('span');
           // error_td.find('label').hide();
            error_td.append(error);
        },
		rules: {
            mobile: {
                required	: true/*,
                mob_v 	: true,
                remote   : {
                    url : 'index.php?act=login&op=checkmobile',
                    type: 'get',
                    data:{
                        mobile : function(){
                            return $('#mobile').val();
                        }
                    }
                }*/
            },
			truename: {
                required	: true
               // minlength 	:6
               // pwd_v 	: true
            }
			,captcha : {
                required : true

            }
					},
		messages: {
            mobile: {
                required	: '手机号码不能为空',
                mob_v	:	'手机号码输入错误',
                remote   :	'手机号码已存在'
            },
			truename: {
                required:'客户姓名不能为空'//,
              //  pwd_v:''
            }
			 ,captcha : {
                required : '验证码不能为空'
            }
					}
	});
});
</script>
  <!--页面内容E-->
</article>
<footer style=" background:none; margin-bottom:50px" class="footer layout padding-small bg-white text-center">
    <div class="f-top lh36"><span style="color:#02d4f9; line-height:20px" class="vLine">注册赢取矿博会门票</span></div>
    <div class="f-top lh36"><span style="color:#02d4f9; line-height:20px" class="vLine">及互联网+有色金属高峰论坛嘉宾门票</span></div>
  <div class="text-small"  style="color:#FFFFFF; line-height:20px">（行业专家云集，全面解析有色金属行业向互联网转型密码)</div>
   <div class="text-small"  style="color:#fffc00; line-height:20px">（手机验证码将做为登入密码使用)</div>
  <div class="f-top lh36"><span style="color:#02d4f9; line-height:40px" class="vLine">更有金银商城礼品相送~</span></div>
    <div class="text-small"  style="color:#fffc00; line-height:20px"><a href="index.php?act=login">已注册用户请登入</a></div>
</footer>
<div style="text-align:center;"> <img style="width:200px" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/zz_03.png"/></div>
<!--分享得现金弹框s-->

</body>
</html>
